System and method for Huffman shaping in a data communication system

ABSTRACT

In a communication system, Huffman coding techniques are used to obtain shaping gains for an improvement in data transmission rates. More particularly, a novel method of Huffman shaping is described that achieves a shaping gain of greater than 1 dB. The shaping gain results in a higher data rate transmission in a communication system where transmitted power is constrained.

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application makes reference to, and claims priority to and the benefit of, U.S. provisional application Serial No. 60/224,733 filed Aug. 11, 2000.

INCORPORATION BY REFERENCE

[0002] The above-referenced U.S. provisional application Serial No. 60/224,733 is hereby incorporated herein by reference in its entirety.

STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT N/A BACKGROUND OF THE INVENTION

[0003] Current data communication systems rarely approach highest possible rate, i.e., the rate corresponding to Shannon channel capacity. For example, voiceband modems complying with ITU-T recommendation V.90 employ uncoded modulation for downstream transmission. The nominal downstream rate of 56 kbit/s is thereby almost never achieved, although under practical channel conditions the capacity rate can exceed 56 kbit/s.

[0004] The difference between the signal-to-noise ratio (SNR) required to accomplish a given rate with a given practical coding and modulation scheme and the SNR at which an ideal capacity-achieving scheme could operate at the same rate is known as “SNR gap to capacity”. At spectral efficiencies of 3 bit per signal dimension or higher, uncoded modulation with equiprobable PAM (pulse amplitude modulation) and QAM (quadrature amplitude modulation) symbols exhibit an SNR gap of 9 dB at a symbol error probability of 10⁻⁶. In the case of V.90 downstream transmission, the SNR gap can correspond to a rate loss of up to 12 kbit/s.

[0005] This overall 9 dB gap is generally comprised of a “shaping gap” portion and a “coding gap” portion. The “shaping gap” portion (approximately 1.5 dB) is caused by the absence of constellation shaping (towards a Gaussian distribution). The remaining “coding gap” portion (approximately 7.5 dB) stems from the lack of sequence coding to increase signal distances between permitted symbol sequences.

[0006] Two different techniques are used, generally in combination, to reduce the overall 9 dB gap. The first technique addresses the “coding gap” portion, and uses one of several coding techniques to achieve coding gains. One of these techniques is trellis-coded modulation. More recent techniques employ serial- or parallel-concatenated codes and iterative decoding (Turbo coding). These latter techniques can reduce the coding gap by about 6.5 dB, from 7.5 dB to about 1 dB.

[0007] Once a coding gain is achieved, the second technique, referred to as shaping, can be used to achieve an even further gain. This type of gain is generally referred to as a shaping gain. Theoretically, shaping is capable of providing an improvement (i.e., shaping gain) of up to 1.53 dB.

[0008] Two practical shaping techniques have been employed in the prior art to achieve shaping gains, namely, trellis shaping and shell mapping. With 16-dimensional shell mapping, such as employed in V.34 modems, for example, a shaping gain of about 0.8 dB can be attained. Trellis shaping can provide a shaping gain of about 1 dB at affordable complexity. Accordingly, between 0.5 and 0.7 dB of possible shaping gain remains untapped by these prior art shaping methods.

[0009] Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with the present invention as set forth in the remainder of the present application with reference to the drawings.

BRIEF SUMMARY OF THE INVENTION

[0010] Aspects of the present invention may be found in a method of communicating data in a communication system. The method generally comprises accepting and randomizing (scrambling) data from a source of user data, such as a computer, for example. The randomized data are accumulated until a Huffman codeword is recognized, at which time the Huffman codeword is mapped into a channel symbol. Then the channel symbol is applied to an input of a communication channel. In the field of source coding, the above operation is known as Huffman decoding.

[0011] The encoding operation described above may be combined with further channel encoding operations such as, for example, trellis coded modulation or some form of serial- or parallel-concatenated coding to achieve coding gain in addition to shaping gain. In addition, channel symbols can be modulated in various ways before they are applied to the input of the communication channel.

[0012] In one embodiment of the invention, the channel encoding operation described above is performed in combination with a framing operation to achieve transmission of data at a constant rate.

[0013] Next, on the receiver side of the communication channel, a channel symbol is received from an output of the communication channel after suitable demodulation and channel decoding. Once obtained, the channel symbol is converted into the corresponding Huffman codeword. The data sequence represented by concatenated Huffman codewords is de-randomized (descrambled) and delivered to a sink of user data.

[0014] In one embodiment of the invention, a deframing operation is performed, which provides for data delivery to the data sink at constant rate.

[0015] The method of the present invention results in a symbol constellation and a probability distribution of symbols in this constellation that exhibits a shaping gain of greater than 1 dB. The shaping gain may be, for example, 1.35 dB or 1.5 dB, depending on the specific design

[0016] In general, a communication system according to the present invention comprises a communication node that performs a “Huffman decoding” operation to generate channel symbols with a desired probability distribution.

[0017] These and other advantages and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

[0018]FIG. 1 is a block diagram of a generic communication system that may be employed in connection with the present invention.

[0019]FIG. 2 illustrates additional detail regarding the transmitters of FIG. 1 according to the present invention.

[0020]FIG. 3 shows shaping gain versus rate for PAM and QAM_(sq) constellations of different sizes, in accordance with the present invention.

[0021]FIG. 4 plots shaping gains versus rate for square and lowest-energy 1024-QAM constellations, in accordance with the present invention.

[0022]FIG. 5 depicts the mean and standard deviation of the rate in bit/dimension and the shaping gain accomplished for a nominal rate of R=4 bit/dimension with QAM_(le) constellations of different sizes, in accordance with the present invention.

[0023]FIG. 6 illustrates a 128-QAM_(le) constellation with Huffman shaping for a nominal rate of 3 bit/dimension, in accordance with the present invention.

[0024]FIG. 7 illustrates one embodiment of a generic method for achieving constant rate and recovering from bit insertions and deletions.

[0025]FIG. 8 illustrates the probability of pointer overflow as a function of framing buffer size in accordance with the present invention.

[0026]FIG. 9 illustrates one embodiment of the design of a Huffman code in accordance with the present invention.

[0027]FIG. 10 is a block diagram of one embodiment of a communication system that operates in accordance with the method of present invention.

[0028]FIG. 11 is another embodiment of the design of a Huffman code in accordance with the present invention, when a framer/deframer is utilized.

[0029]FIG. 12 is a block diagram of another embodiment of a communication system that operates in accordance with the method of present invention, utilizing a framer/deframer.

[0030]FIG. 13 illustrates one operation of a system that employs Huffman shaping in accordance with the present invention.

DETAILED DESCRIPTION OF THE INVENTION

[0031]FIG. 1 is a block diagram of a generic communication system that may be employed in connection with the present invention. The system comprises a first communication node 101, a second communication node 111, and a channel 109 that communicatively couples the nodes 101 and 111. The communication nodes may be, for example, modems or any other type of transceiver device that transmits or receives data over a channel. The first communication node 101 comprises a transmitter 105, a receiver 103 and a processor 106. The processor 106 may comprise, for example, a microprocessor. The first communication node 101 is communicatively coupled to a user 100 (e.g., a computer) via communication link 110, and to the channel 109 via communication links 107 and 108.

[0032] Similarly, the second communication node 111 comprises a transmitter 115, a receiver 114 and a processor 118. The processor 118, like processor 106, may comprise, for example, a microprocessor. The second communication node 111 is likewise communicatively coupled to a user 120 (again a computer, for example) via communication link 121, and to the channel 109 via communication links 112 and 113.

[0033] During operation, the user 100 can communicate information to the user 120 using the first communication node 101, the channel 109 and the second communication node 111. Specifically, the user 100 communicates the information to the first communication node 101 via communication link 110. The information is transformed in the transmitter 105 to match the restrictions imposed by the channel 109. The transmitter 105 then communicates the information to the channel 109 via communication link 107. The receiver 114 of the second communication node 111 next receives, via communication link 113, the information from the channel 109, and transforms it into a form usable by the user 120. Finally, the information is communicated from the second communication node 111 to the user 120 via the communication link 121.

[0034] Communication of information from the user 120 to the user 100 may also be achieved in a similar manner. In either case, the information transmitted/received may also be processed using the processors 106/118.

[0035]FIG. 2 illustrates additional detail regarding the transmitters of FIG. 1 according to the present invention. The functions of transmitter 201 may be decomposed into those of a source encoder 203 and a channel encoder 205. Generally, the source encoder 203 is a device that transforms the data produced by a source (such as the user 100 or user 120 of FIG. 1) into a form convenient for use by the channel encoder 205. For example, the source may produce analog samples at a certain rate, such as, for example, 8000/s, as in a telephone application. The source encoder 203 then may perform the function of analog-to-digital conversion, converting each analog sample into an 8-bit binary code. The output of the source encoder 203 then would be a binary sequence of digits presented to the input of the channel encoder 205 at a rate of 8×8000=64,000 bit/s. The output of the source encoder 203 is passed to the channel encoder 205, where the data are transformed into symbols that can be transmitted on the channel. For example, the data may be transformed using pulse-amplitude modulation (PAM), whereby successive short blocks of data bits of length N are encoded as analog pulses having one of 2^(N) allowable amplitudes.

[0036] In most communication systems, the data presented to the channel encoder are assumed to be completely random. This randomness is normally assured by the inclusion of a scrambler designed into the system. In the previous example of PAM, random data would lead to each 2^(N) of the allowable amplitudes being equally likely. That is, each of them occurs with probability 2^(−N). It turns out that employing equally likely pulse amplitudes leads to a small inefficiency in the use of the power in the signal that is transmitted into the channel. In fact, as mentioned above, if the amplitude distribution can be made more nearly Gaussian, then up to 1.53 dB of transmitted power can be saved for the same level of error performance at the receiver.

[0037] Accordingly, a shaping function is provided in FIG. 2 by a shaper 207, which alters the statistical distribution of the values presented to modulator 209. Shaping the transmitted signal generally means controlling the distribution of transmitted signal values to make the signal appear more Gaussian in character. The shaper 207 comprises a Huffman decoder 211 and a mapper 213. The design of the Huffman decoder 211 depends upon the characteristics of the channel.

[0038] In the Huffman decoder 211, the sequence of scrambled binary data bits is parsed into Huffman codewords. The codewords are then mapped into modulation symbols. The Huffman code is designed to let the modulation symbols assume approximately a sampled Gaussian distribution.

[0039] Unlike trellis shaping or shell mapping, Huffman shaping is not a constant-rate-encoding scheme. Moreover, decoding errors can lead to bit insertion or deletion in the decoded binary data sequence. This may be acceptable for many systems, such as, for example, those in which variable-length packets are transmitted in burst mode with an Ethernet-like medium access protocol. In some cases, continuous transmission at constant rate is desirable, such as, for example, those involving variable-rate encoded voice and video streams over constant rate channels. A constant rate and recovery from bit insertions and deletions may be achieved, and the framing overhead may be kept to a value equivalent to a SNR penalty of ≈0.1 dB, for example, utilizing the method of the present invention.

[0040] The following mathematical foundation of Huffman shaping is based upon M-ary PAM data transmission, but the concept clearly applies to two- and higher-dimensional modulation as well.

[0041] Let A_(M) be a symmetric M-ary PAM constellation of equally spaced symbols. Adjacent symbols are spaced by 2, and M may be even or odd (usually M will be even):

A _(M) ={a _(i)=−(M−1)+2i,0≦i≦M−1}

[0042] e.g.:

A ₈={−7,−5,−3,−1,+1,+3,+5,+7},

A ₅={−4,−2,0,+2,+4}  (1)

[0043] If symbols are selected independently with probabilities p={p_(i), 0≦i≦M−1}, the symbol entropy H(p)(=rate) and the average symbol energy E(p) become: $\begin{matrix} {{{H(p)} = {- {\sum\limits_{i = 0}^{M - 1}\quad {p_{i}\log_{2}p_{i\quad}\quad {bit}\text{/}{{symbol}\left( {p_{i} = {{\frac{1}{M}{\forall{i:{H(p)}}}} = {H_{M} = {\log_{2}M}}}} \right)}}}}},} & (2) \\ {{E(p)} = {\sum\limits_{i = 0}^{M - 1}\quad {p_{i}{a_{i}}^{2}}}} & (3) \\ {\left( {{M - {PAM}},{p_{i} = {{\frac{1}{M}{\forall{i:{E(p)}}}} = {E_{M} = \frac{M^{2} - 1}{3}}}}} \right).} & \quad \end{matrix}$

[0044] Shaping gain G_(s)(p) expresses a saving in average symbol energy achieved by choosing symbols from A_(M) with probabilities p rather than selecting equiprobable symbols from a smaller constellation A_(M′), where M′=2^(H(p))(M′<M, ignoring that M′ may not be an integer): $\begin{matrix} {{G_{S}(p)} = {\frac{E_{M^{\prime}}}{E(p)} = {\frac{2^{2{H{(p)}}} - 1}{3 \times {E(p)}}.}}} & (4) \end{matrix}$

[0045] The maximum shaping gain is obtained by the probability distribution p={tilde over (p)}, which minimizes E(p) subject to the constraints R=H(p) and Σ_(i=0) ^(M−1)p_(i)=1. Differentiation of $\begin{matrix} {{J(p)} = {{\sum\limits_{i = 0}^{M - 1}\quad {p_{i}{a_{i}}^{2}}} + {\lambda_{1}\left( {{- {\sum\limits_{i = 0}^{M - 1}\quad {p_{i}\log_{2}p_{i}}}} - R} \right)} + {\lambda_{2}\left( {{\sum\limits_{i = 0}^{M - 1}\quad p_{i}} - 1} \right)}}} & (5) \end{matrix}$

[0046] with respect to the probabilities P_(i) yields the conditions $\begin{matrix} {{\left( {\frac{\partial{J(p)}}{\partial p_{i}}} \right)_{p = \overset{\sim}{p}} = {{{a_{i}}^{2} - {\frac{\lambda_{1}}{\ln \quad 2}\left( {{\ln \quad {\overset{\sim}{p}}_{i}} + 1} \right)} + \lambda_{2}} = 0}},{{{for}\quad 0} \leq i \leq {M - 1.}}} & (6) \end{matrix}$

[0047] The parametric solution of (6), with the Lagrange multipliers λ₁, λ₂ transformed into the new variables α,s, becomes $\begin{matrix} {{{\overset{\sim}{p}}_{i} = {{\exp \left( {{- 1} + {\frac{\ln \quad 2}{\lambda_{1}}\left( {{a_{i}}^{2} + \lambda_{2}} \right)}} \right)} = {\alpha \quad {\exp \left( {{- s}{a_{i}^{2}}} \right)}}}},{0 \leq i \leq {M - 1.}}} & (7) \end{matrix}$

[0048] The optimum distribution {tilde over (p)} is thus found to be a Gaussian distribution sampled at the symbol values of A_(M). This solution can also be obtained by maximizing the rate R=H(p) subject to the constraints E(p)=S and Σ_(i=0) ^(M−1)p_(i)=1. The value of α follows from Σ_(i=0) ^(M−1)p_(i)=1. The value of s may be chosen to achieve a given rate R≦log₂(M) or a given average symbol energy S≦E_(M).

[0049] If M and R are increased, the optimum shaping gain tends towards the ultimate shaping gain G_(s) ^(∞)=πe/6=1.423 (1.53 dB). This gain can be derived as the ratio of the variance of a uniform density over a finite interval and the variance of a Gaussian density, both with the same differential entropy.

[0050] One can see that (7) does not only hold for regular symmetric PAM constellations, but gives the optimum shaping probabilities for arbitrary one- and higher-dimensional symbol constellations as well.

[0051] In general, given a sequence of M-ary source symbols which occur independently with probability distribution p, a traditional Huffman coding approach encodes the source symbols into binary codewords of variable lengths such that (a) no codeword is a prefix of any other codeword (prefix condition), and (b) the expected length of the codewords is minimized.

[0052] An optimum set of codewords is obtained by Huffman's algorithm. More particularly, let a_(i) be a source symbol that occurs with probability p_(i). The algorithm associates a_(i) with a binary codeword c_(i) of length l_(i) such that 2^(−l) ^(_(i)) ≈p_(i). The algorithm guarantees that Σ_(i=0) ^(M−1)2^(−l) ^(_(i)) =1. (Kraft's inequality is satisfied with equality), and that the expected value of the codeword length, L=Σ_(i=0) ^(M−1)p_(i) _(^(l)) _(i), approaches the entropy of the source symbols within one bit [10]:

H(p)≦L<H(p)+1.  (8)

[0053] In the limit for large H(p), the concatenated Huffman codewords yield a binary sequence of independent and equiprobable zeroes and ones with rate R−L≡H(p) bit per source symbol. However, for certain probability distributions L may be closer to H(p)+1 than H(p) because of quantization effects inherent in the code construction. If H(p) is small, the difference between L and H(p) can be significant. The rate efficiency may be improved by constructing a Huffman code for blocks of K>1 source symbols. Then, (8) takes the form H(p)≦L(K)/K=L≦H(p)+1/K, where L(K) is the expected length of the Huffman codewords associated with K-symbol blocks. The code comprises M^(K) codewords and the rate expressed in bit per source symbol will generally be within 1/K bit from H(p).

[0054] With the Huffman shaping method of the present invention, the traditional encoding approach is reversed. A Huffman code is generated for the optimum probability distribution {tilde over (p)} of the modulation symbols in a given M-ary constellation. In the transmitter, the sequence of data bits is suitably scrambled so that perfect randomness can be assumed. The scrambled sequence is buffered and segmented into Huffman codewords, as in traditional Huffman decoding. A codeword c_(i) is encountered with probability 2^(−l) ^(_(i)) ≈{tilde over (p)}_(i) and mapped into modulation symbol a_(i). In the receiver, when a symbol a_(i) is detected codeword c_(i) is inserted into the binary output stream.

[0055] For the general case of K-dimensional modulation (K=1: PAM, K=2: QAM), it is appropriate to express rates and symbol energies per dimension, while a_(i), {tilde over (p)}_(i), and l_(i) relate to K-dimensional symbols.

[0056] The mean value {overscore (R)}^(h) and the standard deviation σ_(R) ^(h) of the number of bits encoded per symbol dimension become $\begin{matrix} {{R^{h} = {\frac{1}{K}{\sum\limits_{i = 0}^{M - 1}\quad {2^{- l_{i}}l_{i}\quad {bit}\text{/}{dimension}\quad \left( {\approx {\frac{1}{K}{H\left( \overset{\sim}{p} \right)}}} \right)}}}},} & (9) \\ {\sigma_{R}^{h} = \sqrt{\frac{1}{K}{\sum\limits_{i = 0}^{M - 1}\quad {2^{- l_{i}}{\left( {l_{i} - {KR}^{h}} \right)^{2}.}}}}} & (10) \end{matrix}$

[0057] The average symbol energy per dimension S^(h) and the shaping gain G_(s) ^(h) of the Huffman-shaped symbol sequence are given by $\begin{matrix} {{S^{h} = {\frac{1}{K\quad}\quad {\sum\limits_{i = 0}^{M - 1}{2^{- l_{i}}{a_{i}}^{2}\quad {energy}\quad {per}\quad {dimension}\quad \left( {\approx {\frac{1}{K}{E\left( \overset{\sim}{p} \right)}}} \right)}}}},} & (11) \\ {G_{s}^{h} = {\frac{2^{2{\overset{\_}{R}}^{h}} - 1}{3 \times E^{h}}.}} & (12) \end{matrix}$

[0058] The corresponding quantities obtained with optimum shaping probabilities {tilde over (p)} will be denoted, respectively, by {tilde over (R)} and σ_({tilde over (R)}) (bit/dimension), {tilde over (S)} (energy per dimension), and {tilde over (G)}_(s) (optimum shaping gain).

[0059] For numerical evaluations, uncoded modulation with M−PAM (M=2 m) and M−QAM (M=4 m) constellations have been considered. The M−QAM constellations are either square constellations M−QAM_(sq)={square root}{square root over (M)}−PAM×{square root}{square root over (M)}−PAM, or lowest-energy constellations M−QAM_(le) comprising the M points in the set {(1+2i,1+2k), i,k ∈Z} nearest to the origin. The symmetries of the symbol constellations are enforced on the Huffman codes. In the PAM case, m codewords are constructed for positive symbols and then extended by a sign bit. Similarly, in the QAM case m codewords are constructed for symbols in the first quadrant and extended by two quadrant bits. The results of different numerical evaluations are depicted in FIGS. 3, 4, and 5.

[0060]FIG. 3 shows shaping gain versus rate for PAM and QAM_(sq) constellations of different sizes, in accordance with the present invention. The solid curves indicate the shaping gains obtained with the optimum shaping probabilities {tilde over (p)}. Every rate in the interval 1≦R≦log₂(M)/K can be accomplished (bit per dimension). The shaping gains vanish at R=1 (constellations reduced to BPSK or QPSK) and R=log₂(M)/K (equiprobable M−QAM). The optimum shaping gains practically reach the ultimate shaping gain of 1.53 dB at R=4 bit per dimension for ≧32-PAM and ≧1024-QAM_(sq) constellations. With the Huffman shaping method of the present invention, not every rate can be realized because of quantization effects in the construction of Huffman codes. For PAM, shaping gains of up to ≈1.35 dB are achieved at some rates above 3 bit per dimension. The effects of quantization are significantly reduced in the QAM cases. With ≧256-QAM_(sq) constellations shaping gains within 0.1 dB from the ultimate shaping gain of 1.53 dB are consistently obtained at rates above 3 bit per dimension.

[0061]FIG. 4 plots shaping gains versus rate for square and lowest-energy 1024-QAM constellations, in accordance with the present invention. Minor differences occur in the region of diminishing shaping gains, at rates above 4.5 bit/dimension. The shaping gain of equiprobable 1024-QAM_(le) (R=5 bit/dimension) is 0.2 dB.

[0062]FIG. 5 depicts the mean and standard deviation of the rate in bit/dimension and the shaping gain accomplished for a nominal rate of R=4 bit/dimension with QAM_(le) constellations of different sizes, in accordance with the present invention. The nominal rate is at least closely achieved with Huffman shaping (with optimum shaping it is exactly achieved). The standard deviation increases with increasing constellation size to a final value of ≈1 bit/dimension. The optimum shaping gain and the Huffman shaping gain increase rapidly when the initial 256-QAM constellation is enlarged. The respective final shaping gains of ≈1.5 dB and ≈1.4 dB are practically achieved with M=512 (512-QAM_(le): 1.495 dB and 1.412 dB, 1024-QAM_(le): 1.516 dB and 1.432 dB).

[0063]FIG. 6 illustrates a 128-QAM_(le) constellation with Huffman shaping for a nominal rate of 3 bit/dimension, in accordance with the present invention. The codeword lengths ranging from 5 to 12 bits are indicated for the first-quadrant symbols. {overscore (R)}^(h)=2.975 (σ_(R) ^(h)=0.919) bit/dimension and G_(s) ^(h)=1.378 dB ({tilde over (G)}_(s)=1.443 dB) are achieved. The symbol energies, optimum shaping probabilities, codeword probabilities and lengths, and the codewords of the first quadrant symbols are listed below. The codewords for the first-quadrant symbols end with 00. TABLE 1 Huffman code words tabulated against their index i |a_(i)|² {tilde over (p)}_(i) p^(h) _(i) = 2^(−li) l_(i) c_(i) 0 2 0.03872 0.03125 5 00000 1 10 0.02991 0.03125 5 10000 2 10 0.02991 0.03125 5 01100 3 18 0.02311 0.03125 5 11100 4 26 0.01785 0.01563 6 010000 5 26 0.01785 0.01563 6 001100 6 34 0.01379 0.01563 6 110000 7 34 0.01379 0.01563 6 101100 8 50 0.00823 0.00781 7 1010000 9 50 0.00823 0.00781 7 0101100 10 50 0.00823 0.00781 7 0101000 11 58 0.00636 0.00781 7 1101100 12 58 0.00636 0.00781 7 1101000 13 74 0.00379 0.00391 8 10101100 14 74 0.00379 0.00391 8 10101000 15 82 0.00293 0.00195 9 001001000 16 82 0.00293 0.00195 9 001000100 17 90 0.00226 0.00195 9 001010100 18 90 0.00226 0.00195 9 001010000 19 98 0.00175 0.00195 9 001011100 20 106 0.00135 0.00098 10 0010011100 21 106 0.00135 0.00098 10 0010011000 22 122 0.00081 0.00049 11 00100000100 23 122 0.00081 0.00049 11 00100000000 24 130 0.00062 0.00049 11 00101101000 25 130 0.00062 0.00049 11 00101100100 26 130 0.00062 0.00049 11 00101100000 27 130 0.00062 0.00049 11 00100001100 28 146 0.00037 0.00024 12 001000010100 29 146 0.00037 0.00024 12 001000010000 30 162 0.00022 0.00024 12 001011011000 31 170 0.00017 0.00024 12 001011011100

Table 1 Huffman Code Words Tabulated Against their Index

[0064]FIG. 7 illustrates one embodiment of a generic method for achieving constant rate and recovering from bit insertions and deletions. Data frames of N_(b) bits are embedded into symbol frames of N_(s) modulation symbols. Every sequence of bits transmitted within a symbol frame begins with a S&P (synch & pointer) field of n_(sp)=n_(s)+n_(p) bits, where n_(s) is the width of a synch subfield and n_(p) is the width of a pointer subfield. The synch subfield enables the receiver to acquire symbol-frame synchronization. In principle, sending a known pseudo-random binary sequence with one bit (n_(s)=1) in every S&P field is sufficient (as in T1 systems). The pointer subfield of the n^(th) symbol frame expresses the offset in bits of the n^(th) data frame from the S&P field.

[0065] With reference to FIG. 7, in the 1^(st) symbol frame, the 1^(st) data frame follows the S&P field with zero offset. The S&P field and 1^(st) data frame are parsed into Huffman codewords, which are then mapped into modulation symbols indexed by 1,2,3, . . . N_(s). The end of the 1^(st) data frame is reached before the N_(s) ^(th) modulation symbol has been determined. The data frame is padded with fill bits until the N_(s) ^(th) modulation symbol is obtained. The 2^(nd) data frame follows the S&P field of the 2^(nd) symbol frame again with zero offset. Now the last symbol of the 2^(nd) symbol frame is found before the 2^(nd) data frame is completely encoded. The S&P field of the 3^(rd) symbol frame is inserted and encoding of the remaining part of the 2^(nd) data frame is then continued, followed by encoding the 3^(rd) data frame. The pointer in the S&P field indicates the offset of the 3^(rd) data frame from the S&P field. The 3^(rd) data frame can again not completely be encoded in the 3^(rd) symbol frame. The 4^(th) data frame becomes completely encoded in the 4^(th) symbol frame and is padded with fill bits, and so on. The pointer information in the S&P fields enables a receiver to recover from bit insertion and deletion errors.

[0066] To determine the overhead in framing bits per symbol, first let B_(n) be the number of bits that are encoded into the N_(s) symbols of the n^(th) symbol frame. As mentioned above, the mean and standard deviation of the number of bits encoded per symbol dimension are R^(h) and σ_(R) ^(h), respectively, as given by (9) and (10). Then B=N_(s)KR^(h) is the mean and σ_(B)={square root}{square root over (N_(s)K)}σ_(R) ^(h) the standard deviation of B_(n). For large N_(s), the probability distribution of B_(n) will accurately be approximated by the Gaussian distribution $\begin{matrix} {{{\Pr \left( {B_{n} = x} \right)} \cong {\frac{1}{\sqrt{2{\pi\sigma}_{B}}}\exp \quad \left( {- \frac{\left( {x - B} \right)^{2}}{2\sigma_{B}^{2}}} \right)}},\quad {x = 0},1,2,3,\ldots} & (13) \end{matrix}$

[0067] Next, let P_(n) be the pointer value in the S&P field of the n^(th) symbol frame. The pointer values will remain bounded if B>n_(sp)+N_(b). Equivalently, the average number of fill bits per frame, n_(fill), is nonzero:

n _(fill) =B−(n _(sp) +N _(b))>0.  (14)

[0068] Moreover, in a practical implementation the pointer values remain limited to the values that can be represented in the n_(p)-bit pointer subfield i.e. 0≦P_(n)≦2^(n) ^(_(p)) −1. Parameters are chosen such that the probability of P_(n)>2^(n) ^(_(p)) −1 becomes negligible. From FIG. 7, one can verify the recursive relation $\begin{matrix} {P_{n} = \left\{ \begin{matrix} 0 & {{{{if}\quad n_{sp}} + P_{n - 1} + N_{b}} \leq B_{n - 1}} \\ {n_{sp} + P_{n - 1} + N_{b} - B_{n - 1}} & {{otherwise}.} \end{matrix} \right.} & (15) \end{matrix}$

[0069] The temporal evolution of the pointer probabilities then becomes $\begin{matrix} {{{\Pr \left( {P_{n} = 0} \right)} = {\sum\limits_{x \geq 0}{{\Pr \left( {P_{n - 1} = x} \right)}{\Pr \left( {B_{n - 1} \geq {n_{sp} + N_{b} + x}} \right)}}}},} & (16) \\ {{{{\Pr \left( {P_{n} = y} \right)} = {\sum\limits_{{x \geq {0\quad {and}}}{x \geq {y - n_{sp} - N_{b}}}}^{\quad}\quad {{\Pr \left( {P_{n - 1} = x} \right)}{\Pr \left( {B_{n - 1} = {n_{sp} + N_{b} + x - y}} \right)}}}},{y = 1},2,3,{\ldots \quad.}}\quad} & (17) \end{matrix}$

[0070] (equation (17) changed to fit within page margins)

[0071] The steady-state distribution Pr(P=x)=Pr(P_(n→∞)=x) can be determined numerically (mathematically speaking, Pr(P=x) is the eigensolution of (16) and (17) associated with eigenvalue one). Pr(P=x) and Pr(P≧x) are plotted in FIG. 8 for the following case.

[0072] Lowest-energy 512-QAM, nominal rate R=4 bit/dimension

[0073] Huffman code design:

[0074] →R^(h)=4.015, σ_(R) ^(h)=0.927 bit/dimension; shaping gain G_(s) ^(h)=1.412 dB.

[0075] Assume N_(s)=512 QAM symbols/symbol, N_(b)=4094 bit/data frame, n_(sp)=12 (n_(s)=1, n_(p)=11)

[0076] →B=4111.36, σ_(B)=29.66, n_(fill)=5.36 bit/symbol frame.

[0077] The pointer field allows for a maximum pointer value of 2047. FIG. 6 shows that Pr(P>2047) is well below 10⁻¹⁰. The pointer values exhibit a Paréto distribution, i.e., log(Pr(P≧x)) decreases linearly for large x.

[0078] A framing overhead of (n_(sp)+n_(fill))/N_(s)=0.034 bit/QAM symbol is found, which is equivalent to an SNR penalty of 0.102 dB. The final net shaping gain becomes 1.412−0.102=1.310 dB.

[0079] Based on the above mathematical foundation of Huffman shaping, in one embodiment of the invention, the method of the present invention may generally comprise two parts. The first is related to the design of the Huffman code to be employed on a given channel, and the second is related to the operation of the Huffman shaper in the transmitter. While the above mathematical foundation of Huffman shaping assumes a PAM implementation; extension to higher-dimensional modulation are also possible.

[0080]FIG. 9 illustrates one embodiment of the design of a Huffman code in accordance with the present invention. The modulation scheme is characterized by parameters M, α, and s (see (7) and accompanying text above) acquired in block 901, from which are derived the constellation levels {a_(i);i=0,1, . . . , M−1} also in block 901. The probability p_(i) is then calculated for each a_(i) in step 903 for i=0,1, . . . , M−1. Finally, a Huffman code for the symbols {a_(i)} and their corresponding probabilities {p_(i)} is constructed in block 905.

[0081]FIG. 10 is a block diagram of one embodiment of a communication system that operates in accordance with the method of present invention. Upon completion of the construction of the Huffman code in FIG. 9, a Huffman shaper is employed. Referring to FIG. 10, Huffman shaper 1001 is loaded with information from a table similar to Table 1 above. The Huffman shaper information comprises one entry for each valid Huffman codeword and a corresponding entry for the channel symbol into which that Huffman codeword is mapped. The information is also sent to the receiver, using means available in the training procedure for the system. Then Huffman shaping proceeds during data transmission.

[0082] Specifically, referring again to FIG. 10, data source 1003 generates (typically binary, but this is not required) data symbols at an adjustable rate controlled by the Huffman shaper 1001. The data symbols are converted to pseudo-random form in a scrambler 1005. The Huffman shaper 1001 generally comprises two parts, namely, a Huffman parser 1007 and a mapper 1009. The Huffman parser 1007 accumulates outputs from the scrambler 1005, symbol by symbol (e.g., bit by bit), until it accumulates a valid Huffman codeword. This codeword forms the input to the mapper 1009. The mapper 1009 generates the channel symbol that corresponds to the Huffman codeword and passes the channel symbol to modulator 1011, under the control of the modulator clock 1013. The modulator clock 1013 defines the timing of the system. If required by the modulator clock 1013, the Huffman shaper 1001 controls the rate at which it accumulates output symbols from the scrambler 1005, in order to meet the demands of the modulator clock 1013.

[0083] Slicer/decision element 1015 maps the symbol received from the channel 1017 into its best estimate of the channel symbol transmitted by the remote transmitter. The Huffman encoder 1019 maps the estimated received channel symbol into a Huffman codeword, which is passed to the descrambler 1021. The descrambler 1021 inverts the operation of the scrambler 1005, and the resulting received sequence of data symbols is passed to the user 1023.

[0084] The Huffman shaper 1001 is modeled as being able to control the rate at which data are input to the shaper (see reference numeral 1025 of FIG. 10). More colloquially, present-day communication systems often operate in an environment where a large buffer of data are available for transmission, and data can be removed from that buffer at any rate appropriate for the transmission medium. Therefore, ascribing an adjustable rate capability to the Huffman shaper 1001 does not burden the method of the present invention with functionality that is not already present in practical situations.

[0085] As described above, a system that employs Huffman shaping carries a variable number of bits per modulation symbol. Therefore channel errors can introduce data in the receiver that is incorrect bit-by-bit, and that actually may contain the wrong number of bits as well. That is, referring to FIG. 10, if a channel symbol different from the one introduced at the input to the modulator 1011 is received at the output of the slicer/decision element 1015, then both the bits and the number of bits passed to the Huffman encoder 1019 may be incorrect. To compensate for this potential effect, a framer/deframer may be introduced.

[0086]FIG. 11 is another embodiment of the design of a Huffman code in accordance with the present invention, when a framer/deframer is utilized. Again, a PAM implementation is assumed, but extensions to higher-dimensional modulation are also possible. Referring to FIG. 11, the modulation scheme is characterized by parameters M,α,s,N_(b),N_(s),n_(s), and n_(p) acquired in block 1001, from which are derived the constellation levels {a_(i);i=0,1, . . . , M−1} (block 1101). Parameters N_(b),N_(s),n_(s), and n_(p) define, respectively, the number of data bits, the number of modulation symbols, the number of synch bits, and the number of pointer bits in each symbol frame. The probability p_(i) then is calculated for each a_(i) in block 1103 for i=0,1, . . . ,M−1. Finally, a Huffman code for the symbols {a_(i)} and their corresponding probabilities {p_(i)} is constructed in block 1105.

[0087]FIG. 12 is a block diagram of another embodiment of a communication system that operates in accordance with the method of present invention, utilizing a framer/deframer. Upon completion of the construction of the Huffman code in FIG. 11, a Huffman shaper is employed. Referring to FIG. 12, Huffman shaper 1201 is loaded with information from a table similar to Table 1 above. The Huffman shaper information consists of one entry for each valid Huffman codeword and a corresponding entry for the channel symbol into which that Huffman codeword is mapped. A framer 1203 is loaded with parameters N_(b),N_(s),n_(s), and n_(p). The information is also sent to the receiver using means available in the training procedure for the system. In the receiver a deframer 1205 is loaded with the same parameters, N_(b), N_(s), n_(s), and n_(p). Then Huffman shaping proceeds during data transmission.

[0088] Specifically, referring to FIG. 12, data source 1207 generates data symbols at an adjustable rate controlled by the Huffman shaper 1201. The data symbols are converted to pseudo-random form in a scrambler 1209. The scrambler 1209 output is collected in the framer 1203, which arranges transmitted data in groups of N_(b) bits per symbol frame, N_(s) modulation symbols per symbol frame, n_(s) synch bits per frame and n_(p) pointer bits per frame as discussed above. The Huffman shaper 1201 generally comprises of two parts, a Huffman parser 1211 and the mapper 1213. The Huffman parser 1211 accumulates outputs from the framer 1203, symbol by symbol, until it accumulates a valid Huffman codeword. This codeword forms the input to the mapper 1213. The mapper 1213 generates the channel symbol that corresponds to the Huffman codeword and passes the channel symbol to the modulator 1215 under the control of the modulator clock 1217. The modulator clock 1217 defines the timing of the system. If required by the modulator clock 1217, the Huffman shaper 1201 controls the rate at which it accumulates output symbols from the scrambler 1209 in order to meet the demands of the modulator clock 1217 (see reference numeral 1218 in FIG. 12).

[0089] The slicer/decision element 1219 maps the symbol received from the channel 1221 into its best estimate of the channel symbol transmitted by the remote transmitter. The Huffman encoder 1223 maps the estimated received channel symbol into a Huffman codeword. In this embodiment, switch 1225 is in position A. The deframer 1205 is able to distinguish individual received modulation symbols by means of the demodulator clock 1227 signal from the demodulator 1229. It uses the received symbol frame as well as the synch and pointer bits to construct a serial data stream corresponding to the output of the scrambler 1209. This output is passed to the descrambler 1231, which inverts the operation of the scrambler 1209, and the resulting received sequence of data symbols is passed to the user 1233.

[0090] In still another embodiment of the invention, the Huffman code constructed in a slightly modified fashion. This embodiment uses a one-dimensional form of the Huffman code described above. Specifically, a Huffman code is constructed for only the positive modulation symbols. After a Huffman code word has been collected in the transmitter by the Huffman decoder, the decoder uses its next input bit to define the sign of the modulation symbol corresponding to the collected Huffman code word. An inverse procedure is applied in the receiver. Again, a PAM implementation is assumed, but extension to higher-dimensional modulation is also possible.

[0091] Referring to FIG. 11, the modulation scheme is characterized by parameters M,α, s, N_(b), N_(s),n_(s), and n_(p) acquired in block 1101, from which are derived the constellation levels {a_(i);i=0,1, . . . , M−1}(block 1101). Parameters N_(b),N_(s),n_(s) and n_(p) define, respectively, the number of data bits, the number of modulation symbols, the number of synch bits, and the number of pointer bits in each symbol frame. The probability p_(i) is then calculated for each nonnegative a_(i) in block 1103 for i=0,1, . . . , M−1. Finally, a Huffman code for the nonnegative symbols {a_(i)} and their corresponding probabilities {p_(i)} is constructed in block 1105.

[0092] Upon completion of the construction of the Huffman code in FIG. 11, a Huffman shaper is employed. Referring to FIG. 12, Huffman shaper 1201 is loaded with information from a table similar to Table 1 above. The Huffman shaper information consists of one entry for each valid Huffman codeword and a corresponding entry for the channel symbol into which that Huffman codeword is mapped. The framer 1203 is loaded with parameters N_(b),N_(s),n_(s), and n_(p). The information is also sent to the receiver using means available in the training procedure for the system. In the receiver the deframer 1205 is loaded with the same parameters, N_(b),N_(s),n_(s), and n_(s). Then Huffman shaping proceeds during data transmission.

[0093] Specifically, data source 1207 generates data symbols at an adjustable rate controlled by the Huffman shaper 1201. The data symbols are converted to pseudo-random form in scrambler 1209. The scrambler 1209 output is collected in the framer 1203, which arranges transmitted data in groups of N_(b) bits per symbol frame, N_(s) modulation symbols per symbol frame, n_(s) synch bits per frame and n_(p) pointer bits per frame, as discussed above. The Huffman shaper 1201 generally comprises two parts, the Huffman parser 1211 and the mapper 1213. The Huffman parser 1211 accumulates outputs from the framer 1203, symbol by symbol, until it accumulates a valid Huffman codeword. The Huffman parser 1211 then accumulates one additional input bit and appends it to the Huffman codeword. This Huffman codeword with the appended bit forms the input to the mapper 1213. The mapper 1213 generates the channel symbol that corresponds to the Huffman codeword, and uses the appended bit to define the sign of the channel symbol. It then passes the channel symbol to the modulator 1215 under the control of the modulator clock 1217.

[0094] The slicer/decision element 1219 maps the magnitude of the symbol received from the channel 1221 into its best estimate of the magnitude of the channel symbol transmitted by the remote transmitter. It also estimates the sign of the received symbol. The channel symbol magnitude is passed to the Huffman encoder 1223, which maps the estimated received channel symbol magnitude into a Huffman codeword and presents the output at the A input of switch 1225. The sign of the received symbol is presented at the B input of switch 1225 by means of connection sign information 1235. Switch 1225, normally in the A position; is switched to the B position after each received Huffman code word, in order to accept the sign information 1235 from the slicer/decision element 1219. The deframer 1205 is able to distinguish individual received modulation symbols by means of the demodulator clock 1227 signal from the demodulator 1229. It uses the received symbol frame as well as the synch and pointer bits to construct a serial data stream corresponding to the output of the scrambler 1209. This output is passed to the descrambler 1231, which inverts the operation of the scrambler 1209, and the resulting received sequence of data symbols is passed to the user 1233.

[0095]FIG. 13 illustrates one operation of a system that employs Huffman shaping in accordance with the present invention. A transmitter 1301 accepts user data (block 1303). The transmitter 1301 may also perform a framing operation (1307) to provide a means to recover from possible errors that may be introduced in the channel.

[0096] The transmitter 1301 then implements Huffman shaping. Specifically, the transmitter 1301 accumulates source data until a Huffman codeword is recognized (block 1309), and then maps the resulting Huffman codeword into a channel symbol (block 1311). The transmitter then performs a modulation operation (block 1313), which optionally includes sequence coding to increase the signal distances between permitted symbol sequences. Finally, the modulated signal is applied to the input of the communications channel (block 1315).

[0097] The receiver 1317 accepts the received signal from the channel output (block 1319), and demodulates it (block 1321). Demodulation generally includes such operations as timing tracking and equalization. The received signal is then subjected to a decision operation, which may optionally include sequence decoding (block 1323). The Huffman shaping (blocks 1309 and 1311) is inverted by applying the received signal to the input of a Huffman encoder (block 1325). The receiver 1317 then performs a deframing operation (block 1327), and communicates the received data to the user (block 1331).

[0098] Based on the foregoing discussion, it should be apparent that in one embodiment of the invention, once data is received from a data source, the sequence of binary data bits is randomized by a scrambling operation and bits are mapped into channel symbols such that the channel symbols occur with a probability distribution suitable for achieving shaping gain. This is accomplished by accumulating scrambled data bits until a Huffman codeword is recognized, at which time the Huffman codeword is mapped into a channel symbol. Then the channel symbol is applied to the input of a communication channel. The probability of recognizing in the scrambled data sequence a particular Huffman codeword of length L bits is 2^(−L). Hence, the channel symbol associated with that particular Huffman codeword will be transmitted with probability 2^(−L). Note that this channel encoding operation via Huffman codes corresponds in the field of source coding to Huffman decoding.

[0099] In one embodiment of the invention, the channel encoding operation described above is performed in combination with a framing operation to achieve transmission of data at a constant rate. In addition, channel symbols can be modulated in various ways before they are applied to the input of the communication channel.

[0100] Next, on the receiver side of the communication channel a channel symbol is obtained at the demodulator output. The channel symbol is converted into the corresponding Huffman codeword. The sequence of bits represented by concatenated Huffman codewords is descrambled and delivered to the data sink. The described channel decoding operation corresponds in the field of source coding to Huffman encoding.

[0101] In one embodiment of the invention, a deframing operation is performed, which provides for data delivery to the data sink at constant rate. In addition, the deframing operation limits the effect of channel demodulation errors, which can cause a temporal shift of the received binary data sequence. This shift can occur when a channel symbol is erroneously decoded whose associated Huffman codeword differs in length from the Huffman codeword associated with the correct channel symbol.

[0102] The method of the present invention results in a symbol constellation and a probability distribution of symbols in this constellation that exhibits a shaping gain of greater than 1 dB. The shaping gain may be, for example, 1.35 dB or 1.5 dB, depending on the specific design. More specifically, for PAM constellations, shaping gains of up to ≈1.35 dB are achieved for some rates. For QAM constellations, shaping gains within 0.1 dB from the ultimate shaping gain are consistently obtained for rates of >3 bit per dimension.

[0103] In general, a communication system according to the present invention comprises a communication node that performs a Huffman decoding operation to generate channel symbols with a desired probability distribution.

[0104] Many modifications and variations of the present invention are possible in light of the above teachings. Thus, it is to be understood that, within the scope of the appended claims, the invention may be practiced otherwise than as described hereinabove. 

What is claimed and desired to be secured by Letters Patent is:
 1. In a communication system, a method of communicating data comprising: accepting data from a source of user data; accumulating the data until a Huffman codeword is recognized; mapping the Huffman codeword into a channel symbol; and applying the channel symbol to an input of a channel.
 2. The method of claim 1 further comprising scrambling the user data into pseudo-random data.
 3. The method of claim 1 further comprising performing additional channel coding operations to achieve coding gain in addition to shaping gain.
 4. The method of claim 1 further comprising performing a framing operation on the data.
 5. The method of claim 1 further comprising modulating channel symbols in various ways.
 6. The method of claim 1 further comprising receiving symbols from an output of the channel.
 7. The method of claim 2 further comprising: receiving symbols from an output of the channel; and descrambling the received pseudo-random data into user data.
 8. The method of claim 3 further comprising receiving symbols from an output of the channel by performing additional channel decoding operations.
 9. The method of claim 4 further comprising: receiving symbols from an output of the channel; and performing a deframing operation.
 10. The method of claim 5 further comprising receiving symbols from an output of the channel by performing demodulation operations.
 11. The method of claim 6 further comprising performing a Huffman encoding operation on received channel symbols.
 12. The method of claim 11 further comprising communicating the received data to a sink of user data.
 13. The method of claim 1 wherein a symbol constellation with unequal symbol probabilities leads to a shaping gain of greater than 1 dB.
 14. The method of claim 13 whereby a shaping gain of approximately 1.35 dB is attained.
 15. The method of claim 13 whereby a shaping gain of approximately 1.5 dB is attained.
 16. A communication system comprising: a communication node having a shaper, the shaper generating channel symbols in a constellation that exhibits a shaping gain of greater than 1 dB.
 17. The system of claim 16 whereby a shaping gain of approximately 1.35 dB is attained.
 18. The system of claim 16 whereby a shaping gain of approximately 1.5 dB is attained.
 19. The system of claim 16 wherein the communication node further comprises a transmitter, and wherein the transmitter comprises the shaper.
 20. A communication system comprising a communication node that performs a Huffman decoding operation to generate channel symbols.
 21. The system of claim 20 wherein the Huffman decoding operation results in a constellation of symbols and associated symbol propabilities leading to a shaping gain greater than 1 dB.
 22. The system of claim 21 whereby a shaping gain of approximately 1.35 dB is attained.
 23. The system of claim 21 whereby a shaping gain of approximately 1.5 dB is attained.
 24. The system of claim 20 wherein the communication node has a transmitter, and wherein the Huffman decoding operation is performed by the transmitter. 